<template>
	<view class="orderWrap">
		<view class="orderList">
			<view class="orderImg"></view>
			<view class="orderCon">
				<view class="spaceBet">
					<view class="userName">张珊珊</view>
					<!-- <view class="status comp">已完成</view> -->
					<!-- <view class="status cancel">已取消</view> -->
					<view class="status wait">待咨询</view>
				</view>
				<view class="conItem">下单时间：2023-11-23 08:20:30</view>
				<view class="conItem">咨询时间：2023-11-23 08:20:30</view>
				<template v-if="fromPage == 'zxRec'">
					<view class="conItem">咨询方式：面对面咨询</view>
				</template>
				<template v-if="fromPage == 'gyRec'">
					<view class="conItem">预警等级：红色预警</view>
				</template>
			</view>
		</view>
		<!-- <view class="orderList">
			<view class="orderImg"></view>
			<view class="orderCon">
				<view class="spaceBet">
					<view class="userName">张珊珊</view>
					<view class="status comp">已完成</view>
				</view>
				<view class="conItem">下单时间：2023-11-23 08:20:30</view>
				<view class="conItem">咨询时间：2023-11-23 08:20:30</view>
				<view class="conItem">咨询方式：面对面咨询</view>
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		props:{
			fromPage:{
				type:String,//zxRec gyRec
				default:'zxRec'
			}
		}
	}
</script>

<style lang="scss" scoped>
	.orderWrap{
		padding: 20rpx 30rpx 0;
		$calcRes:calc(var(--hei70) * 2);
		.orderList{
			background: var(--ffBg);
			padding: 20rpx;
			margin-bottom: 20rpx;
			display: flex;
			.orderImg{
				width: $calcRes;
				height:$calcRes;
				background: pink;
				border-radius: 50%;
				margin-right: 15rpx;
			}
			.orderCon{
				flex: 1;
				.spaceBet{
					margin-bottom: 15rpx;
				}
				.userName{
					font-size: 30rpx;
					color: $pss-text-color0;
					font-weight: 600;
				}
				.status{
					padding: 0 15rpx;
					height: 38rpx;
					line-height: 38rpx;
					border-radius: 6rpx;
					font-size: 24rpx;
					&.comp{
						border: 1rpx solid $pss-color-blueDeep;
						color: $pss-color-blueDeep;
					}
					&.cancel{
						border: 1rpx solid #ccc;
						color: #ccc;
					}
					&.wait{
						border: 1rpx solid $pss-color-primary;
						color: $pss-color-primary;
					}
				}
				.conItem{
					color: $pss-text-color8;
					font-size: 26rpx;
					margin-bottom: 10rpx;
				}
			}
		}
	}
</style>